<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.6"/>
<title>Paho C++: src/mqtt/ssl_options.h Source File</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript">
  $(document).ready(initResizable);
  $(window).load(resizeHeight);
</script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { searchBox.OnSelectItem(0); });
</script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectlogo"><img alt="Logo" src="pahologo.png"/></td>
  <td style="padding-left: 0.5em;">
   <div id="projectname">Paho C++
   &#160;<span id="projectnumber">1.0</span>
   </div>
   <div id="projectbrief">The Paho MQTT C++ Client Library</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.6 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="annotated.html"><span>Classes</span></a></li>
      <li class="current"><a href="files.html"><span>Files</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="files.html"><span>File&#160;List</span></a></li>
    </ul>
  </div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
$(document).ready(function(){initNavTree('ssl__options_8h_source.html','');});
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Classes</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>Files</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&#160;</span>Variables</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark">&#160;</span>Typedefs</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(6)"><span class="SelectionMark">&#160;</span>Friends</a></div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
  <div class="headertitle">
<div class="title">ssl_options.h</div>  </div>
</div><!--header-->
<div class="contents">
<a href="ssl__options_8h.html">Go to the documentation of this file.</a><div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span>&#160;</div>
<div class="line"><a name="l00008"></a><span class="lineno">    8</span>&#160;<span class="comment">/*******************************************************************************</span></div>
<div class="line"><a name="l00009"></a><span class="lineno">    9</span>&#160;<span class="comment"> * Copyright (c) 2016 Guilherme Ferreira &lt;guilherme.maciel.ferreira@gmail.com&gt;</span></div>
<div class="line"><a name="l00010"></a><span class="lineno">   10</span>&#160;<span class="comment"> *</span></div>
<div class="line"><a name="l00011"></a><span class="lineno">   11</span>&#160;<span class="comment"> * All rights reserved. This program and the accompanying materials</span></div>
<div class="line"><a name="l00012"></a><span class="lineno">   12</span>&#160;<span class="comment"> * are made available under the terms of the Eclipse Public License v1.0</span></div>
<div class="line"><a name="l00013"></a><span class="lineno">   13</span>&#160;<span class="comment"> * and Eclipse Distribution License v1.0 which accompany this distribution.</span></div>
<div class="line"><a name="l00014"></a><span class="lineno">   14</span>&#160;<span class="comment"> *</span></div>
<div class="line"><a name="l00015"></a><span class="lineno">   15</span>&#160;<span class="comment"> * The Eclipse Public License is available at</span></div>
<div class="line"><a name="l00016"></a><span class="lineno">   16</span>&#160;<span class="comment"> *    http://www.eclipse.org/legal/epl-v10.html</span></div>
<div class="line"><a name="l00017"></a><span class="lineno">   17</span>&#160;<span class="comment"> * and the Eclipse Distribution License is available at</span></div>
<div class="line"><a name="l00018"></a><span class="lineno">   18</span>&#160;<span class="comment"> *   http://www.eclipse.org/org/documents/edl-v10.php.</span></div>
<div class="line"><a name="l00019"></a><span class="lineno">   19</span>&#160;<span class="comment"> *</span></div>
<div class="line"><a name="l00020"></a><span class="lineno">   20</span>&#160;<span class="comment"> * Contributors:</span></div>
<div class="line"><a name="l00021"></a><span class="lineno">   21</span>&#160;<span class="comment"> *    Guilherme Ferreira - initial implementation and documentation</span></div>
<div class="line"><a name="l00022"></a><span class="lineno">   22</span>&#160;<span class="comment"> *    Frank Pagliughi - added copy &amp; move operations</span></div>
<div class="line"><a name="l00023"></a><span class="lineno">   23</span>&#160;<span class="comment"> *******************************************************************************/</span></div>
<div class="line"><a name="l00024"></a><span class="lineno">   24</span>&#160;</div>
<div class="line"><a name="l00025"></a><span class="lineno">   25</span>&#160;<span class="preprocessor">#ifndef __mqtt_ssl_options_h</span></div>
<div class="line"><a name="l00026"></a><span class="lineno">   26</span>&#160;<span class="preprocessor"></span><span class="preprocessor">#define __mqtt_ssl_options_h</span></div>
<div class="line"><a name="l00027"></a><span class="lineno">   27</span>&#160;<span class="preprocessor"></span></div>
<div class="line"><a name="l00028"></a><span class="lineno">   28</span>&#160;<span class="preprocessor">#include &quot;MQTTAsync.h&quot;</span></div>
<div class="line"><a name="l00029"></a><span class="lineno">   29</span>&#160;<span class="preprocessor">#include &quot;<a class="code" href="message_8h.html">mqtt/message.h</a>&quot;</span></div>
<div class="line"><a name="l00030"></a><span class="lineno">   30</span>&#160;<span class="preprocessor">#include &quot;<a class="code" href="topic_8h.html">mqtt/topic.h</a>&quot;</span></div>
<div class="line"><a name="l00031"></a><span class="lineno">   31</span>&#160;<span class="preprocessor">#include &quot;<a class="code" href="types_8h.html">mqtt/types.h</a>&quot;</span></div>
<div class="line"><a name="l00032"></a><span class="lineno">   32</span>&#160;<span class="preprocessor">#include &lt;vector&gt;</span></div>
<div class="line"><a name="l00033"></a><span class="lineno">   33</span>&#160;</div>
<div class="line"><a name="l00034"></a><span class="lineno">   34</span>&#160;<span class="keyword">namespace </span>mqtt {</div>
<div class="line"><a name="l00035"></a><span class="lineno">   35</span>&#160;</div>
<div class="line"><a name="l00037"></a><span class="lineno">   37</span>&#160;</div>
<div class="line"><a name="l00041"></a><span class="lineno"><a class="line" href="classmqtt_1_1ssl__options.html">   41</a></span>&#160;<span class="keyword">class </span><a class="code" href="classmqtt_1_1ssl__options.html">ssl_options</a></div>
<div class="line"><a name="l00042"></a><span class="lineno">   42</span>&#160;{</div>
<div class="line"><a name="l00044"></a><span class="lineno">   44</span>&#160;    <span class="keyword">static</span> <span class="keyword">const</span> MQTTAsync_SSLOptions DFLT_C_STRUCT ;</div>
<div class="line"><a name="l00045"></a><span class="lineno">   45</span>&#160;</div>
<div class="line"><a name="l00047"></a><span class="lineno">   47</span>&#160;    MQTTAsync_SSLOptions opts_;</div>
<div class="line"><a name="l00048"></a><span class="lineno">   48</span>&#160;</div>
<div class="line"><a name="l00053"></a><span class="lineno">   53</span>&#160;    <span class="keywordtype">string</span> trustStore_;</div>
<div class="line"><a name="l00054"></a><span class="lineno">   54</span>&#160;</div>
<div class="line"><a name="l00056"></a><span class="lineno">   56</span>&#160;    <span class="keywordtype">string</span> keyStore_;</div>
<div class="line"><a name="l00057"></a><span class="lineno">   57</span>&#160;</div>
<div class="line"><a name="l00059"></a><span class="lineno">   59</span>&#160;    <span class="keywordtype">string</span> privateKey_;</div>
<div class="line"><a name="l00060"></a><span class="lineno">   60</span>&#160;</div>
<div class="line"><a name="l00062"></a><span class="lineno">   62</span>&#160;    <span class="keywordtype">string</span> privateKeyPassword_;</div>
<div class="line"><a name="l00063"></a><span class="lineno">   63</span>&#160;</div>
<div class="line"><a name="l00068"></a><span class="lineno">   68</span>&#160;    <span class="keywordtype">string</span> enabledCipherSuites_;</div>
<div class="line"><a name="l00069"></a><span class="lineno">   69</span>&#160;</div>
<div class="line"><a name="l00071"></a><span class="lineno"><a class="line" href="classmqtt_1_1ssl__options.html#ab5e824c91a65212d9b79c704c6ae6f29">   71</a></span>&#160;    <span class="keyword">friend</span> <span class="keyword">class </span><a class="code" href="classmqtt_1_1connect__options.html">connect_options</a>;</div>
<div class="line"><a name="l00072"></a><span class="lineno">   72</span>&#160;    <span class="keyword">friend</span> <span class="keyword">class </span>connect_options_test;</div>
<div class="line"><a name="l00073"></a><span class="lineno">   73</span>&#160;    <span class="keyword">friend</span> <span class="keyword">class </span>ssl_options_test;</div>
<div class="line"><a name="l00074"></a><span class="lineno">   74</span>&#160;</div>
<div class="line"><a name="l00085"></a><span class="lineno">   85</span>&#160;    <span class="keyword">const</span> <span class="keywordtype">char</span>* c_str(<span class="keyword">const</span> <span class="keywordtype">string</span>&amp; str) {</div>
<div class="line"><a name="l00086"></a><span class="lineno">   86</span>&#160;        <span class="keywordflow">return</span> str.empty() ? <span class="keyword">nullptr</span> : str.c_str();</div>
<div class="line"><a name="l00087"></a><span class="lineno">   87</span>&#160;    }</div>
<div class="line"><a name="l00091"></a><span class="lineno">   91</span>&#160;    <span class="keywordtype">void</span> update_c_struct();</div>
<div class="line"><a name="l00092"></a><span class="lineno">   92</span>&#160;</div>
<div class="line"><a name="l00093"></a><span class="lineno">   93</span>&#160;<span class="keyword">public</span>:</div>
<div class="line"><a name="l00095"></a><span class="lineno"><a class="line" href="classmqtt_1_1ssl__options.html#a99a903f26c0ead60bf090c396287b5e8">   95</a></span>&#160;    <span class="keyword">using</span> <a class="code" href="classmqtt_1_1ssl__options.html#a99a903f26c0ead60bf090c396287b5e8">ptr_t</a> = std::shared_ptr&lt;ssl_options&gt;;</div>
<div class="line"><a name="l00097"></a><span class="lineno"><a class="line" href="classmqtt_1_1ssl__options.html#a2861413516a77fbc60964b10a0366f98">   97</a></span>&#160;    <span class="keyword">using</span> <a class="code" href="classmqtt_1_1ssl__options.html#a2861413516a77fbc60964b10a0366f98">const_ptr_t</a> = std::shared_ptr&lt;const ssl_options&gt;;</div>
<div class="line"><a name="l00098"></a><span class="lineno">   98</span>&#160;</div>
<div class="line"><a name="l00102"></a><span class="lineno">  102</span>&#160;    <a class="code" href="classmqtt_1_1ssl__options.html#adc0f2a7d60a63e85328d3db2ac9e3414">ssl_options</a>();</div>
<div class="line"><a name="l00117"></a><span class="lineno">  117</span>&#160;    <a class="code" href="classmqtt_1_1ssl__options.html#adc0f2a7d60a63e85328d3db2ac9e3414">ssl_options</a>(<span class="keyword">const</span> <span class="keywordtype">string</span>&amp; trustStore, <span class="keyword">const</span> <span class="keywordtype">string</span>&amp; keyStore,</div>
<div class="line"><a name="l00118"></a><span class="lineno">  118</span>&#160;                <span class="keyword">const</span> <span class="keywordtype">string</span>&amp; privateKey, <span class="keyword">const</span> <span class="keywordtype">string</span>&amp; privateKeyPassword,</div>
<div class="line"><a name="l00119"></a><span class="lineno">  119</span>&#160;                <span class="keyword">const</span> <span class="keywordtype">string</span>&amp; enabledCipherSuites, <span class="keywordtype">bool</span> enableServerCertAuth);</div>
<div class="line"><a name="l00124"></a><span class="lineno">  124</span>&#160;    <a class="code" href="classmqtt_1_1ssl__options.html#adc0f2a7d60a63e85328d3db2ac9e3414">ssl_options</a>(<span class="keyword">const</span> <a class="code" href="classmqtt_1_1ssl__options.html">ssl_options</a>&amp; opt);</div>
<div class="line"><a name="l00129"></a><span class="lineno">  129</span>&#160;    <a class="code" href="classmqtt_1_1ssl__options.html#adc0f2a7d60a63e85328d3db2ac9e3414">ssl_options</a>(<a class="code" href="classmqtt_1_1ssl__options.html">ssl_options</a>&amp;&amp; opt);</div>
<div class="line"><a name="l00135"></a><span class="lineno">  135</span>&#160;    <a class="code" href="classmqtt_1_1ssl__options.html">ssl_options</a>&amp; <a class="code" href="classmqtt_1_1ssl__options.html#a6eaa6b6a0fd4be1a566e00438709f8ea">operator=</a>(<span class="keyword">const</span> <a class="code" href="classmqtt_1_1ssl__options.html">ssl_options</a>&amp; opt);</div>
<div class="line"><a name="l00141"></a><span class="lineno">  141</span>&#160;    <a class="code" href="classmqtt_1_1ssl__options.html">ssl_options</a>&amp; <a class="code" href="classmqtt_1_1ssl__options.html#a6eaa6b6a0fd4be1a566e00438709f8ea">operator=</a>(<a class="code" href="classmqtt_1_1ssl__options.html">ssl_options</a>&amp;&amp; opt);</div>
<div class="line"><a name="l00147"></a><span class="lineno"><a class="line" href="classmqtt_1_1ssl__options.html#a2b12e5aa88a2fd3a7d357cd26bb7a7e5">  147</a></span>&#160;    <span class="keywordtype">string</span> <a class="code" href="classmqtt_1_1ssl__options.html#a2b12e5aa88a2fd3a7d357cd26bb7a7e5">get_trust_store</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> trustStore_; }</div>
<div class="line"><a name="l00152"></a><span class="lineno"><a class="line" href="classmqtt_1_1ssl__options.html#a3fb020bc1c137bab4f419a346cba3d62">  152</a></span>&#160;    <span class="keywordtype">string</span> <a class="code" href="classmqtt_1_1ssl__options.html#a3fb020bc1c137bab4f419a346cba3d62">get_key_store</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> keyStore_; }</div>
<div class="line"><a name="l00157"></a><span class="lineno"><a class="line" href="classmqtt_1_1ssl__options.html#a22ecb55b2b132cc1805ec23c1f00060e">  157</a></span>&#160;    <span class="keywordtype">string</span> <a class="code" href="classmqtt_1_1ssl__options.html#a22ecb55b2b132cc1805ec23c1f00060e">get_private_key</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> privateKey_; }</div>
<div class="line"><a name="l00162"></a><span class="lineno"><a class="line" href="classmqtt_1_1ssl__options.html#ac73a5dfbbc8ba4d2ef2747e44cfcf3af">  162</a></span>&#160;    <span class="keywordtype">string</span> <a class="code" href="classmqtt_1_1ssl__options.html#ac73a5dfbbc8ba4d2ef2747e44cfcf3af">get_private_key_password</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> privateKeyPassword_; }</div>
<div class="line"><a name="l00168"></a><span class="lineno"><a class="line" href="classmqtt_1_1ssl__options.html#a97f843305731f50708cdb51373845dcf">  168</a></span>&#160;    <span class="keywordtype">string</span> <a class="code" href="classmqtt_1_1ssl__options.html#a97f843305731f50708cdb51373845dcf">get_enabled_cipher_suites</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> enabledCipherSuites_; }</div>
<div class="line"><a name="l00173"></a><span class="lineno"><a class="line" href="classmqtt_1_1ssl__options.html#aaedf93daa36cb17e7dc1d63d3b347a96">  173</a></span>&#160;    <span class="keywordtype">bool</span> <a class="code" href="classmqtt_1_1ssl__options.html#aaedf93daa36cb17e7dc1d63d3b347a96">get_enable_server_cert_auth</a>()<span class="keyword"> const </span>{</div>
<div class="line"><a name="l00174"></a><span class="lineno">  174</span>&#160;        <span class="keywordflow">return</span> to_bool(opts_.enableServerCertAuth);</div>
<div class="line"><a name="l00175"></a><span class="lineno">  175</span>&#160;    }</div>
<div class="line"><a name="l00182"></a><span class="lineno">  182</span>&#160;    <span class="keywordtype">void</span> <a class="code" href="classmqtt_1_1ssl__options.html#aa3b98b5f6fccca749c962775dbd1c8c4">set_trust_store</a>(<span class="keyword">const</span> <span class="keywordtype">string</span>&amp; trustStore);</div>
<div class="line"><a name="l00189"></a><span class="lineno">  189</span>&#160;    <span class="keywordtype">void</span> <a class="code" href="classmqtt_1_1ssl__options.html#a2735d35b147f612f644546394ad952a8">set_key_store</a>(<span class="keyword">const</span> <span class="keywordtype">string</span>&amp; keyStore);</div>
<div class="line"><a name="l00196"></a><span class="lineno">  196</span>&#160;    <span class="keywordtype">void</span> <a class="code" href="classmqtt_1_1ssl__options.html#afe9b7afbe701d59b0390515dcce563c7">set_private_key</a>(<span class="keyword">const</span> <span class="keywordtype">string</span>&amp; privateKey);</div>
<div class="line"><a name="l00202"></a><span class="lineno">  202</span>&#160;    <span class="keywordtype">void</span> <a class="code" href="classmqtt_1_1ssl__options.html#a3c33a1ee28d093a6779b47536e998cb4">set_private_key_password</a>(<span class="keyword">const</span> <span class="keywordtype">string</span>&amp; privateKeyPassword);</div>
<div class="line"><a name="l00220"></a><span class="lineno">  220</span>&#160;    <span class="keywordtype">void</span> <a class="code" href="classmqtt_1_1ssl__options.html#a0baaa0acc9ee34059116cc976e067ed9">set_enabled_cipher_suites</a>(<span class="keyword">const</span> <span class="keywordtype">string</span>&amp; enabledCipherSuites);</div>
<div class="line"><a name="l00226"></a><span class="lineno">  226</span>&#160;    <span class="keywordtype">void</span> <a class="code" href="classmqtt_1_1ssl__options.html#ad9ae3ac9f11beb1303522c92c2241550">set_enable_server_cert_auth</a>(<span class="keywordtype">bool</span> enablServerCertAuth);</div>
<div class="line"><a name="l00227"></a><span class="lineno">  227</span>&#160;};</div>
<div class="line"><a name="l00228"></a><span class="lineno">  228</span>&#160;</div>
<div class="line"><a name="l00232"></a><span class="lineno">  232</span>&#160;<span class="keyword">using</span> ssl_options_ptr = <a class="code" href="classmqtt_1_1ssl__options.html#a99a903f26c0ead60bf090c396287b5e8">ssl_options::ptr_t</a>;</div>
<div class="line"><a name="l00233"></a><span class="lineno">  233</span>&#160;</div>
<div class="line"><a name="l00235"></a><span class="lineno">  235</span>&#160;<span class="comment">// end namespace mqtt</span></div>
<div class="line"><a name="l00236"></a><span class="lineno">  236</span>&#160;}</div>
<div class="line"><a name="l00237"></a><span class="lineno">  237</span>&#160;</div>
<div class="line"><a name="l00238"></a><span class="lineno">  238</span>&#160;<span class="preprocessor">#endif      // __mqtt_ssl_options_h</span></div>
<div class="line"><a name="l00239"></a><span class="lineno">  239</span>&#160;<span class="preprocessor"></span></div>
<div class="ttc" id="classmqtt_1_1ssl__options_html_adc0f2a7d60a63e85328d3db2ac9e3414"><div class="ttname"><a href="classmqtt_1_1ssl__options.html#adc0f2a7d60a63e85328d3db2ac9e3414">mqtt::ssl_options::ssl_options</a></div><div class="ttdeci">ssl_options()</div><div class="ttdoc">Constructs a new MqttConnectOptions object using the default values. </div></div>
<div class="ttc" id="classmqtt_1_1ssl__options_html_a2b12e5aa88a2fd3a7d357cd26bb7a7e5"><div class="ttname"><a href="classmqtt_1_1ssl__options.html#a2b12e5aa88a2fd3a7d357cd26bb7a7e5">mqtt::ssl_options::get_trust_store</a></div><div class="ttdeci">string get_trust_store() const </div><div class="ttdoc">Returns the file containing the public digital certificates trusted by the client. </div><div class="ttdef"><b>Definition:</b> ssl_options.h:147</div></div>
<div class="ttc" id="types_8h_html"><div class="ttname"><a href="types_8h.html">types.h</a></div><div class="ttdoc">Basic types and type conversions for the Paho MQTT C++ library. </div></div>
<div class="ttc" id="classmqtt_1_1ssl__options_html"><div class="ttname"><a href="classmqtt_1_1ssl__options.html">mqtt::ssl_options</a></div><div class="ttdoc">Holds the set of SSL options for connection. </div><div class="ttdef"><b>Definition:</b> ssl_options.h:41</div></div>
<div class="ttc" id="classmqtt_1_1ssl__options_html_ac73a5dfbbc8ba4d2ef2747e44cfcf3af"><div class="ttname"><a href="classmqtt_1_1ssl__options.html#ac73a5dfbbc8ba4d2ef2747e44cfcf3af">mqtt::ssl_options::get_private_key_password</a></div><div class="ttdeci">string get_private_key_password() const </div><div class="ttdoc">Returns the password to load the client&#39;s privateKey if encrypted. </div><div class="ttdef"><b>Definition:</b> ssl_options.h:162</div></div>
<div class="ttc" id="classmqtt_1_1ssl__options_html_ad9ae3ac9f11beb1303522c92c2241550"><div class="ttname"><a href="classmqtt_1_1ssl__options.html#ad9ae3ac9f11beb1303522c92c2241550">mqtt::ssl_options::set_enable_server_cert_auth</a></div><div class="ttdeci">void set_enable_server_cert_auth(bool enablServerCertAuth)</div><div class="ttdoc">Enables or disables verification of the server certificate. </div></div>
<div class="ttc" id="classmqtt_1_1connect__options_html"><div class="ttname"><a href="classmqtt_1_1connect__options.html">mqtt::connect_options</a></div><div class="ttdoc">Holds the set of options that control how the client connects to a server. </div><div class="ttdef"><b>Definition:</b> connect_options.h:46</div></div>
<div class="ttc" id="message_8h_html"><div class="ttname"><a href="message_8h.html">message.h</a></div><div class="ttdoc">Declaration of MQTT message class. </div></div>
<div class="ttc" id="classmqtt_1_1ssl__options_html_aaedf93daa36cb17e7dc1d63d3b347a96"><div class="ttname"><a href="classmqtt_1_1ssl__options.html#aaedf93daa36cb17e7dc1d63d3b347a96">mqtt::ssl_options::get_enable_server_cert_auth</a></div><div class="ttdeci">bool get_enable_server_cert_auth() const </div><div class="ttdoc">Returns the true/false to enable verification of the server certificate . </div><div class="ttdef"><b>Definition:</b> ssl_options.h:173</div></div>
<div class="ttc" id="classmqtt_1_1ssl__options_html_a2735d35b147f612f644546394ad952a8"><div class="ttname"><a href="classmqtt_1_1ssl__options.html#a2735d35b147f612f644546394ad952a8">mqtt::ssl_options::set_key_store</a></div><div class="ttdeci">void set_key_store(const string &amp;keyStore)</div><div class="ttdoc">Sets the file containing the public certificate chain of the client. </div></div>
<div class="ttc" id="classmqtt_1_1ssl__options_html_a3c33a1ee28d093a6779b47536e998cb4"><div class="ttname"><a href="classmqtt_1_1ssl__options.html#a3c33a1ee28d093a6779b47536e998cb4">mqtt::ssl_options::set_private_key_password</a></div><div class="ttdeci">void set_private_key_password(const string &amp;privateKeyPassword)</div><div class="ttdoc">Sets the password to load the client&#39;s privateKey if encrypted. </div></div>
<div class="ttc" id="classmqtt_1_1ssl__options_html_a0baaa0acc9ee34059116cc976e067ed9"><div class="ttname"><a href="classmqtt_1_1ssl__options.html#a0baaa0acc9ee34059116cc976e067ed9">mqtt::ssl_options::set_enabled_cipher_suites</a></div><div class="ttdeci">void set_enabled_cipher_suites(const string &amp;enabledCipherSuites)</div><div class="ttdoc">Sets the list of cipher suites that the client will present to the server during the SSL handshake...</div></div>
<div class="ttc" id="classmqtt_1_1ssl__options_html_a2861413516a77fbc60964b10a0366f98"><div class="ttname"><a href="classmqtt_1_1ssl__options.html#a2861413516a77fbc60964b10a0366f98">mqtt::ssl_options::const_ptr_t</a></div><div class="ttdeci">std::shared_ptr&lt; const ssl_options &gt; const_ptr_t</div><div class="ttdoc">Smart/shared pointer to a const object of this class. </div><div class="ttdef"><b>Definition:</b> ssl_options.h:97</div></div>
<div class="ttc" id="classmqtt_1_1ssl__options_html_aa3b98b5f6fccca749c962775dbd1c8c4"><div class="ttname"><a href="classmqtt_1_1ssl__options.html#aa3b98b5f6fccca749c962775dbd1c8c4">mqtt::ssl_options::set_trust_store</a></div><div class="ttdeci">void set_trust_store(const string &amp;trustStore)</div><div class="ttdoc">Sets the file containing the public digital certificates trusted by the client. </div></div>
<div class="ttc" id="classmqtt_1_1ssl__options_html_a97f843305731f50708cdb51373845dcf"><div class="ttname"><a href="classmqtt_1_1ssl__options.html#a97f843305731f50708cdb51373845dcf">mqtt::ssl_options::get_enabled_cipher_suites</a></div><div class="ttdeci">string get_enabled_cipher_suites() const </div><div class="ttdoc">Returns the list of cipher suites that the client will present to the server during the SSL handshake...</div><div class="ttdef"><b>Definition:</b> ssl_options.h:168</div></div>
<div class="ttc" id="classmqtt_1_1ssl__options_html_a22ecb55b2b132cc1805ec23c1f00060e"><div class="ttname"><a href="classmqtt_1_1ssl__options.html#a22ecb55b2b132cc1805ec23c1f00060e">mqtt::ssl_options::get_private_key</a></div><div class="ttdeci">string get_private_key() const </div><div class="ttdoc">Returns the file containing the client&#39;s private key. </div><div class="ttdef"><b>Definition:</b> ssl_options.h:157</div></div>
<div class="ttc" id="classmqtt_1_1ssl__options_html_a3fb020bc1c137bab4f419a346cba3d62"><div class="ttname"><a href="classmqtt_1_1ssl__options.html#a3fb020bc1c137bab4f419a346cba3d62">mqtt::ssl_options::get_key_store</a></div><div class="ttdeci">string get_key_store() const </div><div class="ttdoc">Returns the file containing the public certificate chain of the client. </div><div class="ttdef"><b>Definition:</b> ssl_options.h:152</div></div>
<div class="ttc" id="classmqtt_1_1ssl__options_html_a6eaa6b6a0fd4be1a566e00438709f8ea"><div class="ttname"><a href="classmqtt_1_1ssl__options.html#a6eaa6b6a0fd4be1a566e00438709f8ea">mqtt::ssl_options::operator=</a></div><div class="ttdeci">ssl_options &amp; operator=(const ssl_options &amp;opt)</div><div class="ttdoc">Copy assignment. </div></div>
<div class="ttc" id="topic_8h_html"><div class="ttname"><a href="topic_8h.html">topic.h</a></div><div class="ttdoc">Declaration of MQTT topic class. </div></div>
<div class="ttc" id="classmqtt_1_1ssl__options_html_a99a903f26c0ead60bf090c396287b5e8"><div class="ttname"><a href="classmqtt_1_1ssl__options.html#a99a903f26c0ead60bf090c396287b5e8">mqtt::ssl_options::ptr_t</a></div><div class="ttdeci">std::shared_ptr&lt; ssl_options &gt; ptr_t</div><div class="ttdoc">Smart/shared pointer to an object of this class. </div><div class="ttdef"><b>Definition:</b> ssl_options.h:95</div></div>
<div class="ttc" id="classmqtt_1_1ssl__options_html_afe9b7afbe701d59b0390515dcce563c7"><div class="ttname"><a href="classmqtt_1_1ssl__options.html#afe9b7afbe701d59b0390515dcce563c7">mqtt::ssl_options::set_private_key</a></div><div class="ttdeci">void set_private_key(const string &amp;privateKey)</div><div class="ttdoc">Sets the file containing the client&#39;s private key. </div></div>
</div><!-- fragment --></div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="navelem"><a class="el" href="dir_68267d1309a1af8e8297ef4c3efbcdba.html">src</a></li><li class="navelem"><a class="el" href="dir_503ebd9f384f44c9859dcb1451d026bc.html">mqtt</a></li><li class="navelem"><a class="el" href="ssl__options_8h.html">ssl_options.h</a></li>
    <li class="footer">Generated on Sun Jul 23 2017 10:24:29 for Paho C++ by
    <a href="http://www.doxygen.org/index.html">
    <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.6 </li>
  </ul>
</div>
</body>
</html>
